// ActionScript file
package  DramCore
{
	import flash.display.Loader;
	import flash.net.URLRequest;
	import flash.system.LoaderContext;
	import flash.events.Event;
	
	internal class ALoader extends Loader
	{
		private var __completed:Boolean = false;
		
		public function ALoader()
		{
			this.contentLoaderInfo.addEventListener(Event.COMPLETE, completeHandler)
		}
		//	bytesTotal == bytesLoaded ???
		public function  get completed():Boolean
		{
			return __completed;
		}
		
		override public function load(urlRequest:URLRequest, context:LoaderContext=null):void
		{
			__completed = false;
			super.load(urlRequest, context);
		}
		private function completeHandler(e:Event):void
		{
			__completed = true;
		}
	}
}